package com.gakj.truck.third.api.mapper;

import com.gakj.truck.third.core.annotation.MyBatisMapper;
import com.gakj.truck.third.core.domain.Customor;
import com.gakj.truck.third.core.domain.CustomorDto;
import org.apache.ibatis.annotations.Param;

/**
 * Created by gc on 2016/5/8.
 */
@MyBatisMapper
public interface CustomorMapper {

    CustomorDto getCustomorByLoginNameOrMobile(@Param(value = "loginName") String loginName,
                                               @Param(value = "type") String type,
                                              @Param(value = "mobile") String mobile);

    void saveCustomor(Customor Customor);

    void updateCustomor(Customor customor);

    Customor getCustomorByid(@Param(value = "id") Long id);

    Customor getCustomorByUserTell(String contacttel);

}
